//首页样式
//引入common样式文件   格式：   @import "文件名";
@import "common";
body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    //line-height: 1.5;
    font-family: arial,helvetica;
    background: #f2f2f2;
}
//search_content
@baseFront:50;
.search_content {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: 88rem / @baseFront;   //页面元素rem计算公式：页面元素px / html页面字体大小
    background-color: #ffc001;
    .classify {
        width: 44rem / @baseFront;
        height: 70rem / @baseFront;
        margin: 11rem / @baseFront 25rem / @baseFront 7rem / @baseFront 24rem / @baseFront;
        background: url(../images/classify.png) no-repeat;
        //背景缩放
        background-size:44rem / @baseFront 70rem / @baseFront;
    }
    .search {
        flex: 1;
        input {
            outline:none;
            width: 100%;
            height: 66rem / @baseFront;
            border: 0;
            border-radius: 33rem / @baseFront;
            background-color: #fff2cc;
            margin-top: 12rem / @baseFront;
            font-size: 25rem / @baseFront;
            padding-left: 55rem / @baseFront;
            color: #757575;
        }
    }
    .login {
        width: 75rem / @baseFront;
        height: 70rem / @baseFront;
        margin: 10rem / @baseFront;
        font-size: 25rem / @baseFront;
        text-align: center;
        line-height: 70rem / @baseFront;
        color: #fff;
    }
}
//banner
.banner {
    width: 750rem / @baseFront;
    height: 368rem / @baseFront;
    img {
        width: 100%;
        height: 100%;
    }
}
//ad
.ad {
    display: flex;
    a {
       flex: 1;
       img {
           width: 100%;
       }
    }
}
//nav
nav {
    width: 750rem / @baseFront;
    a {
        float: left;
        width: 150rem / @baseFront;
        height: 140rem / @baseFront;
        text-align: center;
        img {
            display: block;
            width: 82rem / @baseFront;
            height: 82rem / @baseFront;
            margin: 10rem / @baseFront auto 0;
        }
        span {
            font-size: 25rem / @baseFront;
            color: #333;
        }
    }
}
